package part8;

/**
 * @author wcj
 * @Date 2021/5/16 17:29
 * @Version 1.0
 */
public class Part85 {

    public static void main(String[] args) {
        StaticSuper aSuper = new StaticSub();
        aSuper.dynamicGet();
        StaticSuper.staticGet();
    }
}

class StaticSuper {

    public static void staticGet() {
        System.out.println("Super static");
    }

    public void dynamicGet() {
        System.out.println("Super dynamic");
    }
}

class StaticSub extends StaticSuper {

    public static void staticGet() {
        System.out.println("Sub static");
    }

    @Override
    public void dynamicGet() {
        System.out.println("Sub dynamic");
    }
}
